import {Edge} from "@antv/x6";

type Data = {
    instanceId: string, taskId: string, taskName: string,
    x6Json: any | null, x6Img: string | null, riskInfo: string | null,
    question: string | null, answer: string | null,
}

export type State = {
    visible: boolean, instanceVisible: boolean, instanceLoading: boolean,
    data: Data,

    proportionalEdge: null | Edge, proportionalModalVisible: boolean, proportionalModalValue: number,
    edgeShape: string,
    canRedo: boolean, canUndo: boolean,

    openTools: boolean,
    graphLoading: boolean,
    onClose: () => void
};

export const emptyData = {
    instanceId: '', taskId: '', taskName: '',
    x6Json: null, x6Img: null, riskInfo: null,
    question: null, answer: null
};
